<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>山西煤炭现货公路交易系统客户端</title>
<link href="<s:url value="/resources"/>/css/style_new.css"
	rel="stylesheet" type="text/css" />
<link href="<s:url value="/resources"/>/css/main_new.css"
	rel="stylesheet" type="text/css" />
<script src="<s:url value="/resources"/>/js/jquery.js"
	type="text/javascript"></script>
<script type="text/javascript">

	$(function() {

		initMenu();

	});

	function initMenu() {
		$("#menu ul").hide();

		
		
		var mt_chose=$("#mt_chose").val();
		//alert(mt_chose);
		if(mt_chose!=""){
			$("#menu ul:eq("+mt_chose+")").show();
		}else{
			$("#menu ul:first").show();	
		}
		

		$("#menu li a").click(function() {

			var checkElement = $(this).next();
			if ((checkElement.is("ul")) && (checkElement.is(":visible"))) {
				return false;
			}
			if ((checkElement.is("ul")) && (!checkElement.is(":visible"))) {
				$("#menu ul:visible").slideUp("normal");
				checkElement.slideDown("normal");
				return false;
			}
		});

	}
	
	 function daoh(url,menutitle){
		    window.parent.document.getElementById("main").src=url; 
		    var　topFrame = window.parent.document.getElementById("menutitle"); 
		　       //var aa=　topFrame.contentWindow.document.getElementById("menutitle");
		　      
			topFrame.innerText ="当前位置："+menutitle;
				
	}
</script>
</head>

<body>
<input type="hidden" name="mt_chose" id="mt_chose" value="${mt_chose}"> 
	<div class="menu-box">
		<div class="menu-list">
			<ul id="menu">${menu}
			</ul>
		</div>
	</div>
</body>
</html>
